Skip to content

fix(desktop): move focus to the new page heading when navigation removes it - #1479

Merged
jonathan308 merged 2 commits into
codex/desktop-mac-preview-20261012from
fix/desktop-focus-after-navigation
Oct 15, 2026
Merged

jonathan308 merged 2 commits into
codex/desktop-mac-preview-20261012from
fix/desktop-focus-after-navigation

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

App re-keys <main> on every route change, and Onboarding re-keys its step. The button that triggered the change is unmounted, so focus falls to <body>. In headless Chrome this happened after Enter on every one of these:

  • Home: View earnings, Explore Stats, the fan shortcut (Open Cooling), Open MacBook Pro, Open Mac Studio
  • This Mac's Overview: Manage models
  • Onboarding: Start, Skip, Check again, Open dashboard. Focus also stayed on the body through the automatic move to Ready to serve.

Keyboard users had to Tab from the top of the window again, and screen readers announced nothing. document.title was always Darkbloom.

After: when navigation removes the focused control, focus moves to the new page's h1 or the onboarding step's h2, and is announced. Focus that survives the change is left alone; sidebar buttons already kept focus. The window title names the page, for example Earnings · Darkbloom.

Found during the second desktop UI audit pass (keyboard and screen reader). Base: codex/desktop-mac-preview-20261012 (unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.

Before / After

flowchart LR
  subgraph Before["Before"]
    direction TB
    B1(["Enter on View earnings"]):::user --> B2["main re-keyed → button unmounted"]:::code
    B2 --> B3(["Focus on body · title 'Darkbloom'"]):::bad
  end
  subgraph After["After"]
    direction TB
    A1(["Enter on View earnings"]):::user --> A2["main re-keyed → button unmounted"]:::code
    A2 --> A3["useFocusRecovery: focus lost?<br/>→ focus main h1"]:::fix
    A3 --> A4(["Focus on “Earnings” ·<br/>title 'Earnings · Darkbloom'"]):::good
    A5(["Sidebar click (focus survives)"]):::user --> A6(["Focus stays on the sidebar"]):::good
  end
  classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb
  classDef code fill:#312e81,stroke:#a5b4fc,color:#eef2ff
  classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2
  classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5
  classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4
Loading

Legend: blue = user action, indigo = unchanged code path, red = defect, green = changed code / fixed outcome.

Changes

  • useFocusRecovery.ts (new): after its key changes, and only when focus fell to the body, it focuses the given heading (adding tabindex="-1"). It optionally sets document.title. It runs in a frame after render, so the new page exists.
  • App.tsx: keyed on route and Mac, focusing main h1, with the title from that heading.
  • components/Onboarding.tsx: keyed on step, focusing the step's h2.
  • styles/base.css: no outline on programmatically focused headings.
  • tests/focusRecovery.test.tsx (new): Home → View earnings lands on the Earnings heading with the title set, an onboarding step change, and sidebar focus kept. The first two fail on the base branch.
  • CHANGELOG.md: Unreleased entry.

Validation

cd desktop-app
npx vitest run tests/focusRecovery.test.tsx   # 2 fail on base; 3 pass here
npx vitest run --maxWorkers=4
npx tsc --noEmit
npx prettier --check src tests
make docs-impact-check BASE=origin/codex/desktop-mac-preview-20261012

Limitations

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…ves it

App re-keys <main> on each route and Onboarding re-keys its step, so the
button that triggered the change (View earnings, Explore Stats, Open a
Mac, Manage models, Start, Skip, Check again, Open dashboard) is removed
and focus falls to the document body. Keyboard users restart at the top
of the window and screen readers announce nothing; document.title is
always "Darkbloom".

Add useFocusRecovery: after the key changes, if focus was lost, focus the
new page's h1 or the onboarding step's h2 (tabindex -1, no outline).
Focus that survived, such as a sidebar button, is kept. Name the window
after the page heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 14, 2026 8:03pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 14, 2026 8:03pm UTC
d-inference-landing Ready Ready Preview Oct 14, 2026 8:03pm UTC
darkbloom-status Ready Ready Preview Oct 14, 2026 8:03pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 14, 2026 8:03pm UTC

Request Review

Address the reviewed edge cases with regression tests while preserving existing behavior.

Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed.
@jonathan308
jonathan308 merged commit 4b1af23 into codex/desktop-mac-preview-20261012 Oct 15, 2026
20 of 22 checks passed
jonathan308 added a commit that referenced this pull request Oct 15, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gajesh2007 added a commit that referenced this pull request Oct 23, 2026
…wift CLI (#1518)

* feat(desktop): add Electron frontend for the Swift CLI

* fix(desktop): wait for operation cancellation to finish

* fix(coordinator): rate-limit and cache the desktop projection per account

GET /v1/provider/desktop was registered without request bookkeeping or a
rate limit, and its 20 s cache key included the client-controlled
X-Darkbloom-Device-Identity header, so a token holder could bypass the
cache and force a full registry walk plus per-machine earnings queries on
every request.

- Authenticate through requireDesktopProviderToken: active, account-linked
  provider tokens only, checked on every request before the cache, with
  outcome-stage and auth stamping.
- Apply the per-account limiter via rateLimitDesktop (429 + Retry-After).
- Cache one typed projection per account and compute is_this_mac per
  request on a copy; the SE key stays unexported and out of the JSON.
- Document the route, auth label and limiter in api-contracts.md.

* fix(desktop): harden login launch, update feed, tray and runtime repair

- Start hidden at login on macOS: login-item args are Windows-only in
  Electron 44, so honor app.getLoginItemSettings().wasOpenedAtLogin as
  well as --hidden.
- Stop consuming provider releases as GUI updates. The build config moves
  to electron-builder.ts and emits a generic feed only when
  DARKBLOOM_DESKTOP_UPDATE_URL is set (publish: null otherwise, so no
  GitHub feed is inferred). At runtime the updater is used only when the
  embedded app-update.yml declares a generic https feed; otherwise the
  Updates screen reports an explicit "unconfigured" state.
- Rebuild the tray menu only when its visible model changes; Start reads
  the latest snapshot at click time.
- Fetch cooling status only while the Cooling screen is shown.
- Verify the installed runtime's signature before repair runs its update,
  drop the unused CI=1 installer env, and allow 90 s for desktop ensure.
- Trigger the Desktop App workflow on scripts/install.sh changes.
- Split main/index.ts into focused modules (security, protocol, window,
  ipc, tray, updates, login launch, lifecycle); renderer trust checks live
  in electron-free security.ts with unit tests.

* fix(provider): keep the desktop API current, removable and well-behaved

- desktop ensure now goes through ProviderCore launchctl wrappers and a
  pure decision function (DesktopService.nextStep): install when not
  loaded, bootout/rewrite/bootstrap when the plist differs, kickstart when
  the API is unresponsive or reports another version. At most one restart
  per run, never during a running operation (the API owns its children's
  output pipes), and an HTTP error with an unchanged plist fails fast.
  The plist adds ExitTimeOut and an absolute --config path.
- The API records its executable stamp at startup and exits when the
  binary is replaced and no operation is running, so launchd relaunches
  the new build after terminal, self-update or repair updates.
- stop --uninstall also boots out and deletes io.darkbloom.desktop-api.
- Pass --config to restart and desktop stop-local/restart-local (switch,
  stop and logout do not accept it); every generated argv is parsed in
  tests.
- Map HTTP errors: validation 400 verbatim, malformed bodies 400, unknown
  resource 404, oversized body 413, stream limit 429, coordinator 502 and
  internal 500 with fixed text.
- Share one cooling status read with a 10 s cache, cleared when a cooling
  change finishes.
- Document ensure/restart semantics, uninstall and status codes; update
  the desktop changelog entry.

* feat(desktop): add live activity, token milestones and earnings insights

* fix(desktop): stop live indicators with the provider

* feat(desktop): add hover feedback to every interactive control

Buttons, links, cards, chips, rows and form controls now respond to the
pointer in both themes, using a shared --hover-duration:

- Buttons tint and brighten their border; primary gains a soft glow,
  quiet brightens its text, danger deepens. Disabled controls no longer
  tint or press.
- Text links and setting-link cards nudge their arrow; filter chips,
  serving-mode cards, onboarding choices, schedule days, table rows, the
  profile button and the appearance menu tint or brighten.
- Selects and text inputs strengthen their border. Rows wrapping native
  checkboxes, switches and sliders brighten the control and description,
  and show a not-allowed cursor when the control is disabled.
- Notice and dialog close icons get a halo without shifting layout.
- Selected and active items keep their look under the pointer.

* feat(desktop): accept the terms by turning on instead of a checkbox

The final onboarding step no longer requires ticking "I agree to the
Terms of Service" before Start is enabled. A note under the start action
reads "By turning on, you agree to our Terms of Service", linking to the
terms page.

* feat(desktop): combine focused sidebar with reference leaderboard

* feat(desktop): clarify updates and add sidebar social links

* feat(desktop): organize My Macs around local controls and view-only fleet

* feat(desktop): preview live Stats and a single-screen contribution home

* feat(desktop): choreograph request particles around model cores

* feat(provider): sample real chip load for the desktop API

Add the DarkbloomHardwareLoad library and expose it on the loopback desktop
control API so the desktop chip view shows real machine load instead of a
simulation.

- GET /control/v1/hardware returns chip topology (CPU tiers and clusters from
  hw.perflevelN and the device tree, GPU core groups, ANE presence, memory)
  plus the latest whole-machine sample; /hardware/events streams one sample
  per SSE frame at 1 Hz and shares the eight-stream limit.
- Public counters: per-CPU busy fraction, GPU utilization and the provider's
  share of GPU time, ANE activity, memory use and pressure, thermal state.
  IOReport (bound at runtime) adds GPU/ANE power, GPU frequency and DRAM/ANE
  bandwidth estimates, each tagged measured/estimated/pending/unavailable.
- Sampling is demand-driven (only while a stream is open or for 10 s after),
  costs about 3 ms of CPU per sample, needs no root or helper, and never
  leaves the machine: nothing is logged, heartbeated or sent to the
  coordinator. Unknown values are null, never zero.
- darkbloom doctor --hardware prints the same document for diagnosis.
- Documented in the desktop-control reference and CLI reference, with route
  and sampler tests.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(desktop): chip anatomy home, autopilot-first models, onboarding scan and live hardware

Redesign the desktop app around the Mac itself and wire it to real load.

- Home: an animated chip anatomy (blueprint by default, optional photoreal)
  laid out from the real topology (CPU tiers and clusters, GPU core groups,
  Neural Engine, unified memory). It is driven by the new hardware stream via
  a main-process SSE watcher and IPC subscription that stops when no view
  listens, with reduced-motion support. Fleet summary, earnings and network
  milestone cards sit beside it.
- Models: autopilot-first page (on, shadow, off, unsupported) with a manual
  pool, model facts and a preview fixture.
- Onboarding: a hardware eligibility scan, waitlist, account linking, serving
  summary and advanced options, split into focused components.
- Machines, stats, cooling, updates, settings and leaderboard reworked into
  feature modules (request activity, token bars, request curve, performance,
  release timeline, network map geography).
- Shared formatters (count, timeOfDay, clockTime, bigint compact), one SSE
  frame parser for state and hardware streams, and one preview topology
  (64 GB M4 Max) as the source of truth for all preview fixtures.
- Dead modules removed (System, Contribution, ActivityChart, the old Models,
  FleetOverview and MachineOverview); dark-mode and warning tokens unified.
- README gains a "Run it locally" guide for the preview, the Electron window
  and attaching to an isolated real runtime.
- 51 test files / 366 tests, including a real-HTTP watch() test and a
  fixture-agreement test for the hardware load document.

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(desktop): document the redesigned desktop app

- docs/developer/desktop-app.md: module map for the chip home, models
  autopilot, onboarding scan, hardware watcher (hardware.ts, sse.ts) and
  preview fixtures, including the shared preview topology and the preview
  query parameters; freshness stamp refreshed.
- CHANGELOG.md: the desktop Unreleased section is updated in place for the
  chip anatomy home, live hardware load, autopilot-first models and the
  onboarding scan.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat(desktop): integrate live usage, earnings and shared Swift account backend

Simplify Home and live chip activity, preserve exact session usage, rank models by earnings, improve Mac Stats and cooling recovery, and reuse existing coordinator APIs through scoped native caches and read-only dashboard sessions. Include native, UI, API and store regression tests and canonical documentation.

* feat(desktop): make models Autopilot-first and polish account, cooling and notifications

* Add signed local desktop preview packaging

* Resolve preview signing identity by certificate fingerprint

* fix(desktop): open each page and Mac at the top

The document is the desktop window's scroll container, and route or Mac
changes never reset it. Following View earnings or Explore Stats from
lower on Home, switching Macs, or changing My Macs tabs kept the previous
scroll offset and hid the new page's header and tabs.

Reset the document scroll position in a layout effect whenever the route
or selected Mac changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): chart this session's completed requests in Stats

The native desktop API reports this session's local request history
with completed_at only (DesktopRequestHistory.swift). recordedTraffic
bucketed by settled_at ?? started_at, so every local record produced a
NaN bucket and an empty series. Because history existed, Performance did
not fall back to observed samples and hid the traffic chart entirely on
a serving Mac.

Bucket with the shared requestTime helper (settled, completed, started)
and label local history as completed rather than settled requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): load release data for update status and keep native history

The native release-history resource is synthesized from the latest
release and carries no minimum_provider_version until the coordinator's
desktop release feed is deployed (DesktopResources.swift).
parseReleaseHistory rejected any history without that floor, so Updates
always showed history and support policy as unavailable with the real API.
Accept a missing or null floor as unknown while still rejecting malformed
values; the contract already marks it optional.

This Mac's Overview readiness compares the runtime with the latest
release and floor, but the machines route only requested cloud data. A
runtime below the floor therefore read "a compatible update isn't
available yet" with no Update now action unless Updates had been visited
earlier. Request release and release-history on that route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(desktop): keep the preview signer test valid on Linux CI

The desktop frontend job runs npm test on Ubuntu, where /usr/bin/codesign
does not exist. Backend.connect() then fails verification with ENOENT
and reports the runtime as missing, so the assertion that the unsigned
preview backend yields state 'error' failed on every CI run after the
preview packaging commit.

Assert the platform's outcome while keeping the security assertions on
every platform: the unsigned binary is never executed (no
connection.json) and installing over the bundled API is still rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): show returning users a connecting state on cold launch

App rendered first-run Onboarding whenever no snapshot had arrived yet,
even when onboarding was already complete. Every cold launch therefore
flashed Welcome ("Put this Mac to work." / Start) for as long as the
runtime took to answer (up to the 90-second ensure or 30-second preview
startup bounds), and stayed there when the runtime was unreachable, so
returning users had to press Start to reach Install/Repair.

Render a Startup view for returning users: the onboarding brand shell
with the connection status, or RuntimeSetup when the runtime is missing,
incompatible or failing. First-run onboarding is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): recover the preview API after a crash and keep its errors

The preview spawns `darkbloom desktop serve`, which holds an exclusive
flock on service.lock and does not exit when its parent dies. After a
GUI crash or force quit, every relaunch spawned an API that exited with
"Desktop API is already running"; start() only accepts a discovery
record with the new child's pid, so ensure() failed every time, watch()
retried every five seconds, and Repair could not help.

Electron's single-instance lock means no other preview app owns the
preview directory, so an API still recorded there was left by an earlier
app process. Before spawning, stop the recorded pid only while ps shows
it is exactly this bundled binary running `desktop serve`, guarding
against pid reuse.

The child's stdio was ignored, so the API's own stderr (lock, discovery
and runtime-resolution failures) was lost and the user only saw a
generic message. Keep a bounded stderr tail, include its last line in a
PreviewStartError, and surface that in the backend status the runtime
setup screen already displays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): confirm eligible Macs on a fresh install

Onboarding derives eligibility because the runtime sends no report.
DesktopSnapshot.swift fills memory_gb only for downloaded models
(local?.estimatedMemoryGb), so on a fresh install no model reported a
memory need, the memory check stayed unevaluated, and every Mac,
including a 128 GB M4 Max, got "We couldn't confirm everything".

Use memory_gb || size_gb as a model's need, matching the runtime's own
fit check (modelFitsBudget uses the catalog size for models not yet
downloaded). Models the runtime accepts set the bar. When it accepts
none, memory fails only if every reported model needs more than the
Mac's total memory; otherwise the result stays unknown rather than
reimplementing the runtime's load allowance.

Make the 8 GB fixture match what the runtime reports (the model that
does not fit is not eligible), and model the preview's unknown scenario
as a runtime that has not loaded the catalog yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep incompatible runtimes disconnected

Backend.connect() stored the discovered connection before checking the
initial snapshot's protocol. When the check failed it set an error
status but kept the connection, so watch() opened /events about 250 ms
later, reported the runtime as ready, and forwarded every streamed
snapshot without any protocol check.

Clear the connection whenever connect() fails, and validate every
snapshot, initial or streamed, with one compatibility check. A stream
that changes protocol now drops the connection and reconnects through
the checked path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): ask signed-out Macs to sign in instead of loading earnings

useInsights reads earnings only while the account is signed in or has
legacy data, but Earnings, Home's fleet chart and the Models earnings
order chose their message from `linked`. Signing out, or the dashboard
session expiring after 30 days, clears the session without clearing
the provider link, so those views showed "Loading…" forever with no
retry.

Expose whether insights can load from the hook and show a sign-in
prompt when a linked Mac cannot read them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): guard model actions against double submits and no-ops

Model actions set the row's working label only after awaiting a fresh
state read, and controls lock only once that label exists, so a quick
second click on Keep in memory or Add to pool sent the action twice. For
Add to pool, each duplicate refreshes the pool and drains and restarts
the runtime. Set the label before any await and ignore re-entry while a
task for the same model or policy runs.

Before Autopilot was set up (configured: false), Add to pool returned
silently because Autopilot was not enabled. It now turns Autopilot on
with the turn-on models plus that model, as Keep in memory already does;
Download stays download-only.

Turn on Autopilot only checked its own label and stayed enabled while
another operation ran. Disable it while the app or a model action is
busy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): show stale cooling as unavailable and submit the shown threshold

The Cooling page header switched to "Fan status unavailable" for readings
older than 60 seconds, but the page still showed the old GPU temperature,
RPM, "Spinning" and a turning fan glyph, contradicting both its header
and Home's fan indicator. Share the staleness rule and hide stale values.

The threshold select only offered 5 °C presets. A threshold set from the
CLI between them (for example 52) left the select displaying 40 °C while
Enable provider cooling submitted 52. Offer the configured value as its
own option. The native action decodes speed and temperature as whole
numbers within 60-90 and 40-90, so round and clamp CLI-set values that
would otherwise be rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): match Studio's example to the served model and hide stale keys

Studio defaulted its model to the first downloaded eligible model and
ignored endpoint.models. When the endpoint served another model, the
copied curl example named a model the endpoint does not serve, and
Apply serving mode would restart onto that model. Default to the served
model and keep the example on a served model.

A revealed key stayed on screen after the endpoint stopped, with Hide
disabled. Treat the key as part of the running endpoint and keep Hide
available. Copy and key reads had no error handling, so a failure was
an unhandled rejection and "Copied" could appear; report them instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): report view-only Macs' real status and unavailable totals

The remote overview's status pill mapped every status outside
running/online/serving to "Offline", so a Mac that was starting,
draining, idle or awaiting verification read as offline while the rail
and Home table showed its real status. Use the shared machine status
label whenever the Mac is not online.

Tokens served added missing input or cached input as zero, so a partial
breakdown undercounted the total while those tiles showed "—". Show the
total only when every part is reported.

Without an observation time the status read "Last observed not
observed", and the hourly chart was anchored to the current hour, an
alignment the data does not support. For older observations the open
hour's range lowercased the whole date ("oct 10, 2:47 pm"). Say "Not
observed yet", hide the unanchored chart, and lowercase only "now".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): stop rounding milestones, empty charts and unknown memory into false values

Home's network strip rounded both the total (compact notation) and the
lit cells, so a total just short of a milestone, such as 999,960,000 or
999,999,999,999, read "1B" beside "Next milestone 1B" with all 24 cells
lit, aria-valuenow 100 and "1B of a proposed 1B tokens". Round the total
down toward the milestone and cap progress below completion; ordinary
values keep their existing rounding.

EarningsTimeline scales bars against maximum(), which floors at 1 to
avoid dividing by zero; an all-zero period therefore labeled its axis
"$0.000001" (or "1" for requests and tokens). Leave the scale unlabeled
when every available day is zero.

The runtime reports total memory 0 when it cannot detect the Mac's
memory. This Mac's Overview showed "0.0 GB total" and Home's memory
legend "0 GB", while the machine header already says "Memory unknown".
Show unknown memory as unknown in both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep dialog focus, Escape and Tab working as content changes

Modal handled Escape and the Tab trap with a keydown listener on the
dialog element. Sign-in replaces its view as the operation advances, so
when the focused control (Continue in browser, Cancel) was removed,
focus fell to the document body: Escape no longer closed the dialog and
Tab reached the page behind it.

Handle keys at the document while the dialog is open, pull Tab back into
the dialog when focus is outside it, and return focus to the dialog
(tabIndex -1, no outline) when its focused control disappears. Include
summary, links and textareas in the trap so failure details are
reachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): refresh Leaderboard network totals and tell loading from unavailable

The Leaderboard renders NetworkMap from backend.network, but its route
only requested the leaderboard resource. The map's totals stayed at the
last Home visit while captioned "Refreshes every 30 seconds", and read
"Connecting to the network" indefinitely if Home had not loaded them.
Request network on the Leaderboard route too.

Rankings started as an empty list, so the page said "Leaderboard
unavailable" before the first read settled, and a successful empty
response looked like a failure. Start undefined and show loading, empty
and unavailable separately. NetworkMap called a failed first read "Last
known totals · reconnecting" next to dashes; say statistics are
unavailable instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep manual model selection to models still on disk

With Autopilot off, a chosen model that was not serving could be
removed. It stayed in the selection, its checkbox checked but disabled
so it could not be cleared, the footer still counted it, and Apply
selection sent a switch naming a model no longer on disk. Keep only
downloaded models in the selection.

The memory bar drew unreported active memory as 0% and an unknown total
as "0.0 GB unified memory"; omit the bar and say memory is unknown. An
empty Downloaded or Serving filter said "No models available - Connect
to the network to load the model catalog" although the catalog loaded;
explain the empty filter instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): readable light/dark contrast and system theme on every screen

Several colors only worked in one theme:
- Selected schedule days and ::selection used --text-primary on the
  fixed brand blue, which is dark text in light theme (2.74:1).
- Home's fan status and the progress fills used the fixed --blue on
  dark panels (2.79:1, ~2.4:1); use the theme-aware --accent-brand.
- The fan heat warning used 58% lightness in both themes (~1.9:1 on
  white at 65 °C). Keep the hue inline and choose lightness per theme.
- The cooling slider's dark accent made Chromium draw a near-white
  unfilled track in dark theme.
- Off switches were rgba(0,0,0,.18) on white (~1.5:1).
- The Macs search input removed its outline with no replacement.

The prefers-color-scheme listener lived in the top-bar Appearance
control, so onboarding and the startup screen never followed a macOS
appearance change. Follow it at startup for every screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): confirm unlinking and don't repeat pending link requests

Settings' "Unlink this Mac" sent the unlink action on a single click,
unlike Remove model or Turn off Autopilot, which confirm. Add an
UnlinkDialog with Keep linked / Unlink this Mac.

Home's footer kept "Link account" enabled next to a pending link code
and while a link operation ran, so each click started another link
request. Hide it once a code exists and disable it while linking or
busy, as Settings' button already is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): agree nouns with counts ("1 Mac", "Show 1 more model")

Several labels appended a fixed plural to a count: every single-Mac or
unlinked user saw "1 Macs" above Home's Mac list, Models offered "Show 1
more models", recommendations said "1 downloads", and the Stats request
curve and token-bar descriptions read "1 requests" / "1 tokens".

Add a small plural() helper next to count() and use it at each site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): confirm only the Studio value that was copied

Studio's base-URL and example copy buttons shared one `copied` flag, so
copying the base URL gave no feedback on its own button and switched
"Copy example" to "Copied". Track which value was copied and confirm it
on that button only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): key Leaderboard rows by rank, not pseudonym

Rows were keyed by pseudonym. Two providers with the same pseudonym
produced duplicate React keys, which React reports as an error and can
use to reuse the wrong row's expanded state. Key by rank and name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): don't offer manual downloads of models this Mac can't run

In manual mode the Download button was only disabled while busy, so a
model the runtime marks ineligible (for example a 380 GB model on a
64 GB Mac, "Needs 512 GB of unified memory") could still be downloaded.
Autopilot's view already treats it as not available. Disable it and
show the runtime's reason as the button's tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): save Settings only when changed and the schedule is valid

Save changes was enabled on an untouched form, and an enabled weekly
schedule with no windows, a window without days, or an empty time was
sent anyway. The runtime rejects those in ScheduleConfig.validate(), so
the only feedback was a generic failure after the round trip.

Track whether the form differs from the saved settings, mirror the
runtime's schedule rules in scheduleProblem(), show the first problem
under the schedule, and disable Save until it is resolved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): fit earnings bars, waitlist, activity table and settings at narrow widths

- Earnings bar buttons and Stats traffic hit targets kept the browser's
  default button padding (1px 6px), shrinking 30-day bars to 4.7 px of a
  16.7 px slot at 1024 px wide.
- The waitlist confirmation had no overflow-wrap and the onboarding grid
  used 1fr columns, so a long email widened the page to 972 px in a
  940 px window.
- The Activity table's 760 px minimum exceeded its 698 px container at
  940 px, hiding the Earned column behind an overlay scrollbar.
- Each settings section's last row border sat on the next section's top
  border, drawing a double rule.
- timeOfDay used a two-digit hour ("06:39 PM") unlike clockTime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): readable Earnings breakdown labels and a resetting Copied state

The Earnings breakdown labeled models by raw id ("gpt-oss-20b") although
the catalog names them everywhere else, and its By Mac expander said
"Show all N machines" under a "By Mac" toggle. Copy CSV's "Copied" never
reset until the period changed, unlike Studio's copy feedback.

Use the catalog display name when the settled model is known (falling
back to the short id), say "Macs", and reset Copied after 1.6 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): plain-language copy for settings and models kept in memory

User-facing text exposed implementation terms: Settings said "Managed by
the Swift backend." and "Settings changed in the backend. Reload before
saving.", and manual model selection labeled memory "Native load
allowance". The Models controls say "Keep in memory", but the pause and
turn-off dialogs, the remove tooltip and onboarding said "pin"/"pins".

Use the Darkbloom runtime, explain where an outside settings change comes
from, and describe pinned models as models kept in memory throughout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): stop dialogs pulling focus back on every refresh

Modal's setup effect depended on onClose. Callers (auto-update, Autopilot
pause/turn off, remove model, link) pass a new handler on every render,
and pages re-render on each state push, so the effect re-ran about every
two seconds: its cleanup refocused the opener and its setup focused the
first button ("Close dialog"). A keyboard user pressing Enter a moment
late closed the dialog instead of choosing an action.

Read the latest onClose through a ref and run the setup once per open
dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): announce chip state changes, not every five seconds

Home's chip put its whole activity summary, including requests in
progress, waiting requests, tokens per second and GPU busy, in a polite
live region. Those numbers change every second, so usePoliteSummary's
five-second throttle let a screen reader re-announce about 20 words
every five seconds for as long as Home was open, even with the
animation paused or reduced motion on.

Announce only the chip's name and state, and keep the detailed summary
as screen-reader text outside the live region.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): move focus to the new page heading when navigation removes it

App re-keys <main> on each route and Onboarding re-keys its step, so the
button that triggered the change (View earnings, Explore Stats, Open a
Mac, Manage models, Start, Skip, Check again, Open dashboard) is removed
and focus falls to the document body. Keyboard users restart at the top
of the window and screen readers announce nothing; document.title is
always "Darkbloom".

Add useFocusRecovery: after the key changes, if focus was lost, focus the
new page's h1 or the onboarding step's h2 (tabindex -1, no outline).
Focus that survived, such as a sidebar button, is kept. Name the window
after the page heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): draw focus rings inside scrolling tab strip and Mac rows

The My Macs tab strip and Home's Mac table scroll horizontally, so the
standard focus ring drawn 4px outside each button was clipped: only the
right edge showed on "Overview", and Mac rows showed only a top edge.
Draw these rings inside the control; the tabs get 4px of padding with a
matching negative margin so the labels don't move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): size the menu bar icon like other menu bar icons and add a 2x image

scripts/assets.mjs rendered the tray template to fit 20x22 px and only
at 1x. The 19x22 image filled the whole 22 pt menu bar, and on Retina
displays macOS upscaled the single bitmap, so the Darkbloom item looked
larger and blurrier than its neighbors.

Render the vector mark at 16 pt on a 16 pt square at 1x and 2x
(trayTemplate.png and trayTemplate@2x.png, which Electron's
nativeImage picks up automatically), and ship both in dist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(desktop): keep the generated 2x tray image out of Git

trayTemplate@2x.png is generated by scripts/assets.mjs like the 1x
template, which is already ignored. Ignore it too and drop the copy the
previous commit added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): hide tag signature blocks in release notes

Provider releases take their changelog from the release tag with
`git tag --list --format=%(contents)`, which for a signed tag is the
whole message including its signature. Provider 0.9.20's published
notes therefore end with a -----BEGIN SSH SIGNATURE----- block, and the
Updates timeline rendered each of its lines as a bullet.

Remove SSH and PGP signature blocks (terminated or not) before splitting
notes into lines, so already-published records display cleanly. The
release script is fixed separately so new records stop including it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): report the installed runtime's version and capabilities in the preview

In attach-only mode (the signed local preview) the bundled desktop API
runs child operations through the installed, vendor-signed runtime, but
the snapshot reported the API's own ProviderCore.version. With a 0.9.17
bundled API and an installed 0.9.20 runtime, Updates offered 0.9.20;
Update now ran `darkbloom update`, which answered "Already up to date
(v0.9.20)", and the offer stayed forever.

The released runtime also has no `desktop` command group, so provider
cooling (`desktop configure-cooling`) and Studio's local-only serving
(`desktop start-local` and friends) failed with "Unknown option
'--enabled'" and the runtime's usage text; one user session logged 27
failed cooling attempts.

Read the runtime's --version and `desktop --help` once per executable
stamp (an update replaces the file and triggers a fresh read). Report
that version in the snapshot, reject actions needing a missing desktop
subcommand with an explanation, and report cooling control unavailable.
Release builds (no attached executable) keep their own version and
commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): ignore a stale daemon state file's version

The machine's version came from the daemon state file even when that file
was left behind by an older provider process that has since exited. Use it
only while the file is fresh, like every other daemon field in the snapshot,
and otherwise report the runtime's version. The desktop API harness now
starts with such a stale file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep pool membership out of startup selection

Address the reviewed edge cases and add focused regression coverage.

Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed.

* fix(desktop): invalidate stale endpoint key reveals

Address the reviewed edge cases and add focused regression coverage.

Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed.

* fix(desktop): preserve inline signature text in notes

Address the reviewed edge cases and add focused regression coverage.

Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed.

* fix(desktop): restrict focus handling to the active modal

Address the reviewed edge cases with regression tests while preserving existing behavior.

Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed.

* fix(desktop): preserve checked switches and session themes

Address the reviewed edge cases with regression tests while preserving existing behavior.

Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed.

* fix(desktop): restart copy confirmation feedback safely

Address the reviewed edge cases with regression tests while preserving existing behavior.

Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed.

* fix(desktop): keep page titles in sync with rendered content

Address the reviewed edge cases with regression tests while preserving existing behavior.

Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed.

* fix(desktop): isolate runtime version stdout from diagnostics

Read installed-runtime versions from stdout while retaining ordinary command diagnostics. Reject incomplete or oversized probe output and cover warning, replacement and cancellation cases.

Independent behavior-preserving review completed. Parent verification passed 15 focused Foundation-only harness tests using the actual worker/profile sources and Swift syntax checks. Full provider-package integration remains a CI check; no live provider or GPU workload was run.

* fix(desktop): finish the keep-in-memory wording in onboarding and model actions

Onboarding's Advanced options still described the models you choose as
"pinned" ("2 pinned · …", "the models you pin"), and the Models page
labelled in-progress actions "Pinning…" / "Unpinning…". Use the same
keep-in-memory wording as the rest of the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): say "1 request processing" in live activity

The live-activity summary printed a fixed plural next to the count, so a
single in-flight request read "1 requests processing".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): let dialogs close when clicked over the sidebar or top bar

The sidebar and top bar declare -webkit-app-region: drag so the
frameless window can be moved. Electron applies drag regions to clicks
even under elements stacked above them unless the covering element
declares no-drag. The modal backdrop didn't, so a click on the dimmed
background over the sidebar or top bar moved the window instead of
closing the dialog, and a dialog control over the top bar would not
respond. A user reported that the sign-in dialog would not close.

Declare no-drag on the full-window modal backdrop, and check in a test
that every full-window fixed overlay in the renderer stylesheets does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): match Home's provider button and chip summary to transitional states

Home's header treated every state other than 'running' as stopped, so it
offered Start providing (which opens Models) while the provider was
starting or draining, and a stale provider, whose process is still up,
had no Stop button. Offer Stop while running or stale, and show a
disabled Starting provider / Finishing requests label during the
transitions, as the readiness steps (which treat both as waits) and
This Mac's draining label already do.

The chip counts running, draining and stale providers as powered, and
its screen-reader summary said "live activity" for all of them, even
when no live numbers were shown, ending with a stray space. Say live
activity only while numbers are current; otherwise name the reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): show stale fan readings as unavailable on This Mac's overview

The overview's Fans cell ignored cooling.observed_at, so a reading five
minutes old still showed "Spinning · 4,100 RPM", a turning fan glyph and
the GPU temperature as current. Home's fan button and the Cooling status
already treat readings older than 60 seconds as unavailable.

Move that rule into a coolingStale() helper in cooling/status.ts, use it
in coolingStatus(), Home's FanStatus and the overview's FanHealth, and
show the Fans cell as unavailable, without temperature, when it applies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): say when model slots, not memory, block Keep in memory

pinnedMemory().exceeds combined two limits: the pinned models' memory
against the load budget, and their count against max_model_slots. The
Models page always explained a blocked Keep in memory control with the
memory message, so with max_model_slots = 2 and two models kept, a
third model read "Pinning this needs more memory than this Mac has."
although the three need 45 of 64 GB. Onboarding's pin summary said the
same.

Report which limit is exceeded (limit: 'memory' | 'slots') and word
each reason separately; exceeds still blocks both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): lock manual model actions while Autopilot turns on

With Autopilot off, Models shows the manual selection together with the
Turn on Autopilot offer. Turning on runs as a model action
(useModelActions' policy), whose "Turning on…" label lives in
actions.working, but ManualModels only checked backend.busy. That stays
false until the runtime reports the operation, so Apply selection,
Download and Remove stayed enabled and could submit switch, download or
remove on top of the turn-on.

Pass ManualModels a busy flag that also covers in-flight model actions,
as AutopilotModels already computes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): show a running update instead of offering the required one again

On This Mac's Overview, a runtime below the supported minimum always
added the "Update Darkbloom" step and kept it as the headline, even
while an update operation was running. The step list then read
"Updating Darkbloom · Wait for it to finish" above "Update Darkbloom ·
Update now", with the button disabled only because the app was busy.

Treat a running update as the remedy for a required one: drop the
update step while it runs, so the operation is the only step and the
headline reads "Updating Darkbloom". If the update fails or is
cancelled, the required update step returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): name the model and show progress in download notifications

The bottom operation notification for a model download said only
"Downloading model", and its outcome "Model download · Complete". The
runtime already attributes a download to its model and reports progress
on the operation (model and progress, set by DesktopBackend.swift), and
the model's row on Models shows that progress, but the notification
ignored both.

Add operationTitle(), which names an attributed download by the
catalog's display name (modelName, falling back to the id) and appends
the rounded percentage the row shows while progress is reported. Use it
for the notification and its matching failure. Unattributed downloads
and every other operation keep their existing labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): tell returning users why Darkbloom can't start

Startup reused onboarding's RuntimeSetup, so a returning user whose
runtime was missing saw "Install Darkbloom to check this Mac.", and one
whose runtime failed saw "We couldn't check this Mac." although there is
no check to run. The main process also reported a runtime that answered
in another protocol as a plain error, so it was described as one
Darkbloom "couldn't reach" and offered a repair rather than an update.

Report a protocol mismatch as the existing "incompatible" status, and
give RuntimeSetup returning-user copy for each status: reinstall when
missing, update when incompatible, repair when it couldn't start or
connect. First-run copy is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: repair merged test ending; #1459 protocol rejection now reports incompatible (#1456 follow-up)

* fix(desktop): open the link page only when the user clicks

The desktop API's link action called performDeviceCodeLogin with its
default automaticallyOpenBrowser: true, so starting a link from the app
(onboarding, Autopilot on an unlinked Mac, Home) launched the browser the
moment the code arrived, before the user had read it. Desktop account
sign-in already passed false and waited for "Continue in browser".

Pass false for the link action too; the app's existing link controls
open the page on click. The desktop API harness now issues a pending
code and checks the link page is not requested without a click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): say Autopilot links this Mac in the browser first

On an unlinked Mac, "Download & start Autopilot" and "Turn on Autopilot"
first run the runtime's link action, which opens the browser at once and
shows a device code. Nothing said so before the click, and the link
dialog's Cancel was a small text link.

Label those buttons "Link this Mac & start / turn on Autopilot" and add
one line saying they'll open the link page to approve the code shown here, then
Autopilot starts. Make the link panel's Cancel a secondary button (Models
dialog and onboarding), tell people to open the link page and enter the code,
and show the same link dialog from the manual Models page, which
previously started the link without showing the code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): open external links in a new tab in the browser preview

In the development preview (?preview) the renderer's API is previewAPI,
whose openExternal was a no-op, so "Read the guide" and every other
External / openExternal link did nothing. The signed app is unaffected:
packaged builds compile the preview out (isPreview needs
import.meta.env.DEV) and send each target through the preload bridge to
externalURL and shell.openExternal, which accepts every target the
renderer uses.

Move the target-to-URL map from main/security.ts to
shared/externalLinks.ts so the preview opens the same destinations with
window.open(url, '_blank', 'noopener'), and the device-link URL from the
preview snapshot for 'link'. The main process keeps its https and host
allowlist checks. The preview's device-link fixture now uses the
console host the production coordinator returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): say "serving" everywhere for starting and stopping this Mac

The same act had four names. Home offered "Start providing" and "Stop
provider", This Mac's header "Start provider", the menu bar "Start
provider" / "Restart provider" under a raw "Darkbloom — running" status,
and onboarding "Start serving with Autopilot", while Updates said "Keep
contributing", Settings "Keep providing in the background" and the
onboarding mode choice "Contribute to Darkbloom".

Converge on onboarding's verb: Start serving, Stop serving and Restart
serving on Home, This Mac, Overview next steps, Updates and the menu bar;
operations read "Starting to serve" / "Stop serving · Complete"; the menu
bar status is Serving, Stopped, Starting…, Finishing requests or
Connecting…. "Provider" stays only as the role noun (provider version,
automatic provider updates, the Leaderboard's Provider column). Action ids,
data fields and contract types are unchanged.

The tray menu template moves into trayMenu.ts so it can be tested, and a
new test renders Home, This Mac's header and the tray template and scans
src for the retired wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): link the account first in onboarding, and let any step exit to the app

Onboarding offered no way back to the app until its last step: "Explore
the app first" sat only on the start page, so someone who landed in
setup had to run the check before they could leave. Account linking ran
inline from the start button, after the check.

Make the steps Link your account, Check this Mac, Start. Link account
requests a code, and only Open link page opens the browser; an in-progress
link has a Cancel button; a linked Mac skips to the check with the first
step shown as done. A start on an unlinked Mac returns to the link step
instead of linking inline, then comes back to Start.

Move "Explore the app first" next to the step indicator so it leaves for
the app from every step once there is a snapshot. Leaving cancels a link
in progress; the unmounted scan clears its timers as before.

Remove the "How this Mac is used" choice from Advanced, with the
onboarding-only local start method, copy and ModeChoice. Local models
stay available elsewhere in the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): add Help to the sidebar and a next step to failures

The app had no visible help or support. "Read the guide" only appeared
during onboarding, the troubleshooting link was inside Stats' "Runtime &
readiness" details, and error states said what failed but not what to do
next.

Add Help above the community links at the bottom of the sidebar. It
opens a dialog linking the guide, the Darkbloom Slack and GitHub
Discussions through the existing external-link targets, and names the
app version to mention.

Offer "Get help" (the guide, which covers troubleshooting) on failed or
interrupted operation notifications, on the not-connected notice when
the runtime is unreachable, beside Try again when sign-in fails, and
after a failed runtime install or repair. Waiting states get no link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(desktop): install the backend automatically on first launch

Users download the DMG, drag the app to Applications and open it. When
the backend runtime (~/.darkbloom/bin/darkbloom) was missing, the app
only reported "missing" and waited for a click on "Install runtime".

A packaged release build now starts the bundled verified installer
itself, once per launch, when the watch loop's first connection attempt
finds no runtime. The signed preview, --ui-smoke-test and development
(unless DARKBLOOM_DESKTOP_AUTO_INSTALL=1) never do. The automatic path
and the renderer's buttons share one in-flight install, and the watch
loop no longer reconnects over an install's progress.

The installer's output is now streamed instead of buffered. Its step
headers become plain statuses that call the runtime "the backend",
since people already installed Darkbloom: "Downloading the backend…
42%", "Verifying the backend's signature…", "Setting up this Mac's
identity…", "Setting up device verification…" and "Backend installed.
Starting it…". Only the current line is buffered.

A failure sets installFailed and keeps "Couldn't install the backend
while <step>: <installer's last ✗/Error: line>" until the user retries.
URL queries, credential-looking values and long tokens are removed from
that line. DesktopAPI.cancelInstall() (backend:cancelInstall) stops the
installer's process group, and quitting the app does the same.

RuntimeSetup shows the progress and Cancel while installing, never a
second Install button, and shows the failure reason with Retry. Its
existing first-run wording is unchanged.

scripts/install.sh is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): install the backend as onboarding's first step

Onboarding opened on linking even when the backend wasn't installed: the
link and check steps each swapped in the install or repair screen, so a
first run started at "Link your account" and then asked to install.

Make the steps Install backend, Link your account, Check this Mac, Start.
Install backend stands in for every later step until the backend is
connected with a snapshot. While it connects or installs it shows the
main process's status message with a spinner and no button; when the
backend is missing, failed or incompatible it shows the reason with
Install, Repair or Update backend. The heading and lead name it the
backend, since Darkbloom itself is already installed.

When the backend becomes ready the install step is marked done and
setup moves on to linking by itself (to the check on a linked Mac),
with focus on the new step's heading. A backend that was already
installed, which only connects, opens on the welcome view at step 2 as
before. A reconnect with a snapshot keeps the current step; a backend
that goes missing, fails or reinstalls mid-setup shows the install step
and returns to the same step afterwards. "Explore the app first" still
needs a snapshot, so it never appears on a first install.

The link and scan steps no longer handle a missing runtime themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: align #1487 Home tests with #1501 serving wording

* Integration: first-run cold launch opens #1502's install step

#1456's cold-launch test expected first-run onboarding to open on the
welcome view before the first snapshot; with #1502 it opens on Install
backend, showing the connection status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: #1503 help test uses #1502's Install backend label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: #1504 RuntimeSetup tests follow #1502's install step

Installing and a failed install keep #1502's Install backend heading, and
the failure reason uses the step's single status region; a failed install
offers #1503's Get help. Cover Retry on the returning-user Startup screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: add #1504's cancelInstall to #1479's page-title bridge

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: separate unioned CHANGELOG entries with blank lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): show the pending link code large, with Copy code

This Mac's "Finish linking this Mac" step quoted the code inside a
sentence ("Enter code ABCD-1234 in your browser…"), which was easy to
miss and awkward to read off while typing it on the link page. Show the
code on its own, large and letter-spaced, with a Copy code button, and
keep the sentence for what it's for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): install the CLI only on click, and call it the CLI

The desktop app is CLI-centric: it is a front end to the Darkbloom CLI,
which runs the background service that serves models on this Mac. After
dragging the app from the DMG and opening it, the user starts the CLI
install themselves from the "Install the Darkbloom CLI" screen. The app
never installs anything by itself.

Remove the automatic install: Backend.watch() no longer starts the
installer when the CLI is missing, and the autoInstallEnabled gating,
the Backend constructor's installer argument and
DARKBLOOM_DESKTOP_AUTO_INSTALL are gone. A missing CLI is only reported
as missing; the Install CLI, Repair CLI, Update CLI and Retry buttons
call api.install() as before.

Progress, failures and cancel are unchanged: one in-flight install that
repeated clicks join, streamed plain-language progress, installFailed
with the failing step and the installer's sanitized reason, cancel that
stops the installer's process group (also on quit), and a watch loop
that does not reconnect over an install.

User-facing text now says "the CLI": "Installing the Darkbloom CLI…",
"Downloading the CLI… 42%", "Verifying the CLI's signature…", "CLI
installed. Starting it…", "Couldn't install the CLI while <step>:
<reason>" and "CLI install cancelled.". RuntimeSetup's heading is
"Install the Darkbloom CLI" with the CLI lead and Install/Repair/Update
CLI buttons.

Darkbloom no longer accepts new providers on macOS 26 or earlier, so the
install progress drops the pre-macOS 27 "finish device verification in
System Settings" step; blocking those Macs before install is a separate
change.

Tests: the automatic-install tests become "never installs without a
click" (a missing CLI stays missing and no child is spawned across
reconnect attempts) and a click-to-install test; failure, cancel and
single-flight tests are kept with the new wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): name onboarding's first step Install the Darkbloom CLI

The desktop app is CLI-centric: it is a front end to the Darkbloom CLI,
which runs the background service that serves models on this Mac. After
dragging the app from the DMG and opening it, the first onboarding
screen is "Install the Darkbloom CLI", and the user starts the install
from it with "Install CLI". The app never installs by itself.

Rename the step from "Install backend": the page heading is "Install the
Darkbloom CLI" with the lead "Darkbloom runs on its command-line tool.
It installs once, runs a background service that serves models on this
Mac, and updates automatically.", and the step indicator says "Install
CLI" so the four labels stay readable at narrow widths. The buttons are
Install CLI, Repair CLI and Update CLI, and the waiting texts are
"Installing the Darkbloom CLI…" and "Connecting to the Darkbloom CLI…".

Behavior is unchanged: the step offers a button only for a missing,
broken or incompatible CLI, and install() runs only from that click.
Progress, failures and cancel come from the main process as before.

Tests add "never starts an install without a click" and use the new
wording; the docs' Onboarding section and the #1502 CHANGELOG entry say
the install starts only on click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): check this Mac before linking an account in onboarding

Product decision: the Mac is checked before an account is connected, so
nobody links an account for a Mac Darkbloom can't use. The steps are now
Install the Darkbloom CLI, Check this Mac, Link your account, Start. The
CLI install still starts only when the user clicks Install CLI on the
first screen; its progress, failures and cancel are unchanged.

Once the CLI is ready (or from Start on the welcome view) setup runs the
check. An ineligible Mac stops there with its reasons and the waitlist
and is never asked to link. An eligible Mac, or an unconfirmed one the
user continues past, goes on to Link your account: the code is shown,
only Open link page opens the browser, and a link in progress can be
cancelled. An already linked Mac skips that step, shown as done, and
goes from the check straight to Start. Start on an unlinked Mac still
sends the user back to linking, then returns to Start. "Explore the app
first" stays on every step once there is a snapshot.

The eligible verdict's footer names what comes next ("Next: link your
account" or "Next: start serving"), the welcome and link copy follow the
new order, and the intro grid stays joined from a passed check through
linking to Start.

Tests cover the order, an ineligible Mac never reaching linking, the
linked skip after the check, back-to-link from Start, and leaving from
every step; the preview's ineligible scenario no longer links first. The
docs' Onboarding section and the CHANGELOG entry describe the new order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: call the incompatible install the Darkbloom CLI

The incompatible-protocol status from the protocol gate is shown on the
CLI setup screen next to Update CLI; word it as the CLI, and do the same
in the help changelog entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): require macOS 27 to join and prompt older Macs to update

Darkbloom no longer accepts new providers on macOS 26 or earlier, and
the installer now refuses new installs there (#1505), but the app still
offered Install CLI and passed the Mac in Check this Mac.

The main process now reports the macOS version (app:system) and opens
System Settings' Software Update pane at a fixed URL
(app:software-update); the openExternal allowlist is unchanged.
supportsNewProviders() treats an unknown version as supported.

- Install the Darkbloom CLI: when the CLI is missing below macOS 27,
  show "Darkbloom needs macOS 27 or later" with Open Software Update
  instead of Install CLI. A Mac that already has the CLI carries on.
- Check this Mac: add a macos check when the report has none; an
  ineligible result for that reason offers Open Software Update.
- Existing installs below 27: an advisory Update macOS next step on This
  Mac (a new software-update step action) and a Home notice dismissible
  for the session. Neither changes the readiness tone; the coordinator
  decides whether the Mac still serves.
- Rename This Mac's readiness wording from "runtime" to "CLI".
- Preview: ?preview&macos=26.5 overrides the reported version (27.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep the link code on one line

At narrow widths the link panel's code could wrap at its hyphen
("BLOOM-" / "7Q4K"), which is easy to mistype. Keep it on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): keep This Mac's link code on one line

The large link code on the Finish linking step could wrap at its hyphen
in a narrow column. Keep it on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): space Get help from the install action

After a failed install, Get help sat almost against the full-width
Install/Repair button. Give it its own spacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): make Home's Mac cards read as controls and offer Start on a stopped This Mac

Each Mac under "Your Macs" on Home is a button that opens its overview in
My Macs, but it looked like a static table row: no chevron, no press or
focus treatment, and a stopped This Mac showed only "Stopped" with no way
forward from the card.

Add a trailing chevron with hover, press and inset focus styles. When This
Mac is stopped, show a "Start providing" call to action under its card
that runs Home's header start action (open Models). It sits beside the
open button rather than inside it. While This Mac serves, the card keeps
its live status and shows no call to action, and view-only Macs never
show it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Integration: test doubles gain system/openSoftwareUpdate (#1506); Home has two Start serving buttons (#1507); serving wording in #1506 tests

* Preview: install a missing CLI with the verified installer (never update or repair)

* Integration: preview tests use their own HOME with an installed CLI

* fix(desktop): let a signed preview install a missing CLI

A preview's bundled desktop API attaches to the installed CLI and can't
start without it, so on a Mac with no CLI the preview reported a broken
API ("Repair CLI") and refused Install CLI ("Rebuild the local preview").
That made the first-run flow impossible to review from scratch.

Report the installed CLI as missing so setup offers Install CLI, and let
that click run the same verified production installer a release uses.
A preview still never updates or repairs an existing CLI. Preview tests
now use their own HOME with an installed CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): add Copy code next to the link code

The link panel (onboarding's Link your account step and the Autopilot
link dialog) showed the code with only Open link page. Add a Copy code
button beside the code, with a Copied confirmation, like desktop sign-in.
Copying never opens the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): start Autopilot only with Darkbloom network models

The desktop model list is the catalog plus every model the scan finds on
disk, and models found only on disk were reported eligible. Onboarding's
starting model (first eligible downloaded, by id) could therefore be a
local Hugging Face copy such as mlx-community/gemma-4-26B-A4B-it-qat-4bit
or a legacy prism-ml Bonsai snapshot. `start --autopilot` requires every
startup model to be in the verified network inventory, so it failed with
"could not all be verified" while printing only "Verifying
ternary-bonsai-2-27b..." - the one network model on disk, which passed.

- Snapshot models now report `network` (listed by the catalog).
- servesNetwork() gates the starting model, onboarding pins for network
  starts, turning Autopilot on and the Autopilot pool. Disk-only models
  stay pinnable for Local only and explain why otherwise.
- The CLI names the startup models missing from the inventory instead of
  blaming verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(desktop): report an unverifiable runtime as an error, not missing

connect() maps ENOENT to "missing" (runtime not installed). When the
packaged signature check can't run because codesign itself is absent, as
on the Linux CI runner, its ENOENT was reported as a missing install. The
binary already resolved through realpath, so any verification failure
means an untrusted runtime: surface it as an error…

This branch was successfully deployed

5 active deployments
Preview – d-inference — 42a269ed Deployed Oct 14, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 42a269ed Deployed Oct 14, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 42a269ed Deployed Oct 14, 2026 by vercel[bot]
Preview – d-inference-landing — 42a269ed Deployed Oct 14, 2026 by vercel[bot]
Preview – darkbloom-status — 42a269ed Deployed Oct 14, 2026 by vercel[bot]
benchmarks — 42a269ed Deployed Oct 14, 2026 by jonathan308 via E2E Benchmarks #2649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant